﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace XiTi
{
    public partial class InputPasswordForm : Form
    {
        public InputPasswordForm()
        {
            InitializeComponent();
            this.DialogResult = DialogResult.Cancel;
        }

        private void bt_ok_Click(object sender, EventArgs e)
        {
            if (tb_ps.Text.Equals("ks45i89"))
            {
                this.DialogResult = DialogResult.OK;
                this.Close();
            }
            else
            {
                lb_msg.Text = "密码错误";
            }
        }

        private void bt_cancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
